package oop.newoop;

/**
 * Created with IntelliJ IDEA.
 * ClassName: PhoneTest
 * Package: oop
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-10
 * Time: 14:41
 */

public class PhoneTest {
    public static void main(String[] args) {

        //创建对象
        Phone p1 = new Phone();

        p1.name = "华为";
        p1.price = 6999;

        System.out.println("name = " + p1.name + ", price = " + p1.price);

        p1.call();
    }
}
